OLD_STR=$1
NEW_STR=$2
find . -type f -not -path '*/\.*' -exec grep -Il '' {} + | \
  xargs -I {} sed -i '' "s/${OLD_STR}/${NEW_STR}/g" {}